# coding:utf-8
"""
    Create time : 2020/11/4 - 11:11
    Author : Jimy
    Email : 1650015040@qq.com
"""


class UserView(object):
    def login(self, username, password):
        # user666999、pwd123456
        if username == "user666999" and password == "pwd123456":
            print("用户名:%s,密码:%s,核对成功,已成功登陆!!!"%(username,password))
        if not (8 <= len(username) <= 16):
            print("用户名不符合格式要求!!")
        if not (6 <= len(password) <= 20):
            print("密码长度不在范围内!!")
